package com.jsyl.lwbk.business.mapper;

import com.jsyl.lwbk.business.domain.ClassPlan;
import com.jsyl.lwbk.business.dto.ChildCourseDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassPlanMapper {

    List<ClassPlan> findList(@Param("courseId")Integer courseId,
                             @Param("classType")Integer classType,
                             @Param("ageGrade")String ageGrade);

    int update(ClassPlan classPlan);

    int insert(ClassPlan classPlan);

    int checkPlanNameUnique(@Param("planName")String planName,
                            @Param("ageGrade")String ageGrade);

    List<ClassPlan> getClassPlan(ChildCourseDTO dto);

    /**
     * 训练主题
     * @param ageGrade
     * @return
     */
    List<ClassPlan> selectThemeList(@Param("ageGrade")String ageGrade,
                                    @Param("classType")Integer classType,
                                    @Param("classId")Long classId,
                                    @Param("courseId")String courseId);

    ClassPlan selectById(@Param("id")Long id);
}
